package com.hyperion.blog;

import com.hyperion.blog.utils.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author Hyperion
 */

@SpringBootApplication
@EnableScheduling
public class BlogApp {
    static {
        System.setProperty("druid.mysql.usePingMethod", "false");
    }

    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(BlogApp.class, args);
        SpringContextUtil springContextUtil = new SpringContextUtil(app);
        System.out.println("blog app is running...");
    }
}
